package cn.yunhe.bean;

import java.util.ArrayList;
import java.util.List;

public class Travel {

    private int traId;
    private String topic;
    private String pic;
    private String context;
    private String pubTime;
    private String traSeason;
    private int traDay;
    private int price;
    private String playType;
    private String location;
    private int traLike;
    private int collection;


    private User user=new User();
    private Scenery sce=new Scenery();

    List<Comment> commentList=new ArrayList<>();

    public Travel() {
    }

    public Travel(int traId, String topic, String pic, String context, String pubTime, String traSeason, int traDay, int price, String playType, String location, int traLike, int collection, User user, Scenery sce, List<Comment> commentList) {
        this.traId = traId;
        this.topic = topic;
        this.pic = pic;
        this.context = context;
        this.pubTime = pubTime;
        this.traSeason = traSeason;
        this.traDay = traDay;
        this.price = price;
        this.playType = playType;
        this.location = location;
        this.traLike = traLike;
        this.collection = collection;
        this.user = user;
        this.sce = sce;
        this.commentList = commentList;
    }

    public Travel(String topic, String traSeason,int traDay,int price,String playType,String location, Scenery sce,String context,String pic,  String pubTime ) {
        this.topic = topic;
        this.pic = pic;
        this.context = context;
        this.pubTime = pubTime;
        this.traSeason = traSeason;
        this.traDay = traDay;
        this.price = price;
        this.playType = playType;
        this.location = location;
        this.sce = sce;
    }

    public int getTraId() {
        return traId;
    }

    public void setTraId(int traId) {
        this.traId = traId;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getPubTime() {
        return pubTime;
    }

    public void setPubTime(String pubTime) {
        this.pubTime = pubTime;
    }

    public String getTraSeason() {
        return traSeason;
    }

    public void setTraSeason(String traSeason) {
        this.traSeason = traSeason;
    }

    public int getTraDay() {
        return traDay;
    }

    public void setTraDay(int traDay) {
        this.traDay = traDay;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getPlayType() {
        return playType;
    }

    public void setPlayType(String playType) {
        this.playType = playType;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public int getTraLike() {
        return traLike;
    }

    public void setTraLike(int traLike) {
        this.traLike = traLike;
    }

    public int getCollection() {
        return collection;
    }

    public void setCollection(int collection) {
        this.collection = collection;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Scenery getSce() {
        return sce;
    }

    public void setSce(Scenery sce) {
        this.sce = sce;
    }

    public List<Comment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<Comment> commentList) {
        this.commentList = commentList;
    }
}
